package online.qiujing.proxy;

import online.qiujing.proxy.dynamic.CuiHuaNiu;
import online.qiujing.proxy.dynamic.ILawSuit;
import online.qiujing.proxy.dynamic.ProxyFactory;

/**
 * describe:动态代理demo执行入口
 *
 * @author 的川
 * @date 2019/02/21
 */
public class Main {

    public static void main(String[] arg){
        ILawSuit proxy= (ILawSuit) ProxyFactory.getDynProxy(new CuiHuaNiu());
        proxy.submit("工资流水在此");
        proxy.defend();

    }

}
